package com.basker.pisces.oss.service;

import java.io.IOException;

import org.springframework.core.io.Resource;

import com.basker.pisces.oss.model.ObjectMeta;

/**
 * @author hangwen
 * @date 2020/12/12
 */
public interface OSSService {

    ObjectMeta getMeta(String path);

    Resource getResource(String path);

    ObjectMeta upload(String container, String name, byte[] data) throws IOException;
}
